<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<script>
        //a
        function Foo() {
            getName = function() {
				debugger;
                console.log(1);
            };
			debugger;
            return this;
        }
        //b
        Foo.getName = function() {
			debugger;
            console.log(2);
        };
        //c
        Foo.prototype.getName = function() {
			debugger;
            console.log(3);
        };
        //d
        var getName = function() {
			debugger;
            console.log(4);
        };
        //e
        function getName() {
			debugger;
            console.log(5);
        }
		
		
		
		Foo.getName(); // 2
        getName(); // 4
        Foo().getName(); // 1
        getName();   // 1
        new Foo.getName(); // 2
        new Foo().getName(); // 3
        new new Foo().getName(); // 3
		
</script>

</body>
</html>